package com.xy.entity.express.express100;



import lombok.Data;

import java.util.ArrayList;

//@Entity
@Data
//@EqualsAndHashCode(exclude ={"oneResultItem"})
public class ExpressResult  {

   // @Id
    private String nu;

    private String message;

    private String ischeck ;

    private String com ;
    private String status;

  //  @OneToMany(mappedBy = "expressResult", cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    private ArrayList<OneResultItem> data = new ArrayList<OneResultItem>();

    private String state;

    private String condition;


    public ExpressResult clone() {
        ExpressResult r = new ExpressResult();
        r.setCom(this.getCom());
        r.setIscheck(this.getIscheck());
        r.setMessage(this.getMessage());
        r.setNu(this.getNu());
        r.setState(this.getState());
        r.setStatus(this.getStatus());
        r.setCondition(this.getCondition());
        r.setData((ArrayList<OneResultItem>)this.getData().clone());

        return r;
    }

}


